package fr.aprr.odyssee.client.model;

import com.google.gwt.canvas.dom.client.Context2d;
import com.google.gwt.dom.client.ImageElement;
import com.google.gwt.event.dom.client.MouseMoveEvent;
import com.google.gwt.event.dom.client.MouseMoveHandler;
import com.google.gwt.user.client.ui.Image;

public class Patrouille implements IDrawable, MouseMoveHandler{
	
    static final String PATH_IMG = "resource/patrouille.png";
	public double positionX, positionY;
    public ImageElement image;
    public Image img;
    
	
	public Patrouille() {
	//	image = new Image(PATH_IMG).getElement().cast();
		
		img = new Image(PATH_IMG);
		
	}
	
	
	public void updatePosition(double positionX, double positionY){
		
	}
   
	public void getImageElement(Context2d context){
		image = (ImageElement) img.getElement().cast();
		draw(context);
	}
	
	@Override
	public void draw(Context2d context) {
		// TODO Auto-generated method stub
		
		context.drawImage(image, 350, 0);
		
	//	RootPanel.get().add(img);
	}


	@Override
	public void onMouseMove(MouseMoveEvent event) {
		// TODO Auto-generated method stub
		
	}
	
	
}
